﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="UserEdit.aspx.cs"
    Inherits="iOak.Web.Administration.UserEdit" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <script type="text/javascript">
        $(function () {
            $('#<%=btnOk.ClientID %>').bind('click', function () {
                var fullName = $.trim($('#<%=txtFullName.ClientID %>').val());
                //var password = $.trim($('#<%=txtPassword.ClientID %>').val());
                var msg = '请输入"{0}"!';
                var warnning = '';
                if (fullName == '') {
                    warnning = msg.replace('{0}', '真实姓名');
                }
//                else if (password == '') {
//                    warnning = msg.replace('{0}', '密码');
//                }
                if (warnning != '') {
                    jAlert(warnning);
                    return false;
                }
            });

            $('#<%=btnCancel.ClientID %>').bind('click', function () {
                location.href = '/Administration/UserList.aspx';
                return false;
            });
        });
    </script>
    <div class="content">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color: #fff;">
            <tr>
                <td width="7" align="left" valign="top">
                    <img src="/images/tab-j_01.jpg" width="7" height="7" />
                </td>
                <td width="755">
                    &nbsp;
                </td>
                <td width="10" align="right" valign="top">
                    <img src="/images/tab-j_02.jpg" width="7" height="7" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <div style="border: 1px solid #ccc">
                        <div style="border: 1px solid #fff">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <div class="content-top">
                                            <div class="top_edit_bg">
                                                用户信息</div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div style="padding-top: 20px; background: #f9f9f9;">
                                            <table width="100%" border="0" cellspacing="10" cellpadding="0" class="tab1">
                                                <tr>
                                                    <td class="editor-label" style="width: 30%">
                                                        用户名
                                                    </td>
                                                    <td class="editor-field" style="width: 70%">
                                                        <asp:TextBox runat="server" ID="txtUserName" CssClass="must"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        真实姓名
                                                    </td>
                                                    <td class="editor-field">
                                                        <asp:TextBox runat="server" ID="txtFullName" CssClass="must"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        密码
                                                    </td>
                                                    <td class="editor-field">
                                                        <asp:TextBox runat="server" ID="txtPassword" TextMode="Password" Width="145px"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        Email
                                                    </td>
                                                    <td class="editor-field">
                                                        <asp:TextBox runat="server" ID="txtEmail" Width="280px"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        联系电话
                                                    </td>
                                                    <td class="editor-field">
                                                        <asp:TextBox runat="server" ID="txtPhone"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        移动电话
                                                    </td>
                                                    <td class="editor-field">
                                                        <asp:TextBox runat="server" ID="txtMobile"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        激活
                                                    </td>
                                                    <td class="editor-field">
                                                        <asp:CheckBox runat="server" ID="chkIsActive" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        管理员
                                                    </td>
                                                    <td class="editor-field">
                                                        <asp:CheckBox runat="server" ID="chkIsAdmin" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2" align="center">
                                                        <br />
                                                        <asp:Button runat="server" ID="btnOk" Text="确定" OnClick="btnOk_Click" Width="80px"
                                                            CssClass="adminButtonBlue" />
                                                        <asp:Button runat="server" ID="btnCancel" Text="取消" Width="80px" CssClass="adminButtonBlue" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="left" valign="bottom">
                    <img src="/images/tab-j_03.jpg" width="7" height="7" />
                </td>
                <td>
                    &nbsp;
                </td>
                <td align="right" valign="bottom">
                    <img src="/images/tab-j_04.jpg" width="7" height="7" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
